package com.example.crossborderecommerce.service.impl;

import com.example.crossborderecommerce.entity.Admin;
import com.example.crossborderecommerce.entity.ProductAttribute;
import com.example.crossborderecommerce.mapper.ProductAttributeMapper;
import com.example.crossborderecommerce.service.IProductAttributeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Yolanda
 * @since 2024-05-09
 */
@Service
public class ProductAttributeServiceImpl extends ServiceImpl<ProductAttributeMapper, ProductAttribute> implements IProductAttributeService {
    @Resource
    ProductAttributeMapper productAttributeMapper;
    @Override
    public List<Admin> findAdminsInProductAttribute(){return productAttributeMapper.findAdminsInProductAttribute();}
    @Override
    public boolean updateAttribute(ProductAttribute productAttribute) {
        return this.updateById(productAttribute);
    }
}
